<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>数组的扩展</title>
</head>
<body>

</body>
</html>
<script>
    console.log( ...[1,2,3]);

    let x = 3;
    const arr = [
        ...( x>0 ? ['a'] : []),
        "b"
    ];
    console.log(arr);

    console.log(Math.max(...[14,2,37]));

    let arr2 = [1,2,3];
    arr2.push(4,5,6)
    console.log(arr2);

    let arr3 = [1,2,3];
    let arr4 = [5,6,7];
    arr3.push(...arr4);
    console.log(arr3);


    
</script>